/*$(document).ready(function() {*/
  	var current_selector_dom_obj = null;
  	var current_selector = null;
  	var current_operate = null;
  	
  	var post_url = null;
  	var post_option = { };
  	var res = '';
  	
  	function bootstrap_contextmenu() {
  		switch (controller) {
  		  		case 'about_us':
  			switch (type) {
			  			case 'company':
  								editable_obj = '#front, .company #intro';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'design_team':
  								editable_obj = '.gallery, #history, #portrait, #scrollbar1 .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'events':
  								editable_obj = '#gallery, #scrollbar2 .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'honor':
  								editable_obj = '#honor_carousel .viewport, #scrollbar3 .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'manager_community':
  								editable_obj = '.flip_sub_page, .flip-block';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			}
			break;
		  		case 'project':
  			switch (type) {
			  			case 'project_museum':
  								editable_obj = '.project .center-content, #project_carousel .viewport li';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'project_multi_media':
  								editable_obj = '.project .center-content, #project_carousel .viewport li';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'project_brand_image':
  								editable_obj = '.project .center-content, #project_carousel .viewport li';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'project_landscape_design':
  								editable_obj = '.project .center-content, #project_carousel .viewport li';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'project_panorama_project':
  								editable_obj = '.project .center-content, #project_carousel .viewport li';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'project_sculpture':
  								editable_obj = '.project .center-content, #project_carousel .viewport li';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'project_commercial_demonstration':
  								editable_obj = '.project .center-content, #project_carousel .viewport li';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			}
			break;
		  		case 'service':
  			switch (type) {
			  			case 'service_museum':
  								editable_obj = '#intro #content, #service_carousel .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'service_multi_media':
  								editable_obj = '#intro #content, #service_carousel .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'service_brand_image':
  								editable_obj = '#intro #content, #service_carousel .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'service_landscape_design':
  								editable_obj = '#intro #content, #service_carousel .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'service_panorama_project':
  								editable_obj = '#intro #content, #service_carousel .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'service_sculpture':
  								editable_obj = '#intro #content, #service_carousel .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'service_commercial_demonstration':
  								editable_obj = '#intro #content, #service_carousel .viewport';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			}
			break;
		  		case 'media':
  			switch (type) {
			  			case 'company_news':
  								editable_obj = '.center-content, #media_carousel .viewport .news > img, #media_carousel .viewport .news > div, #media_modal #pic';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'media_reports':
  								editable_obj = '.center-content, #media_carousel .viewport .news > img, #media_carousel .viewport .news > div, #media_modal #pic';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			}
			break;
		  		case 'academy':
  			switch (type) {
			  			case 'course':
  								editable_obj = '.inner-content, .inner-content .courses, #course_modal #gallery';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'exchange':
  								editable_obj = '.inner-content, .inner-content .exchanges';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			}
			break;
		  		case 'join_us':
  			switch (type) {
			  			case 'corporate_culture':
  								editable_obj = '.inner-content img';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'staff_activities':
  								editable_obj = '.staff_activities .center-content, ..inner-content .activities';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'contact':
  								editable_obj = '.inner-content img';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'company_location':
  								editable_obj = '.inner-content img';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			case 'careers':
  								editable_obj = '.inner-content img';
				hover(editable_obj);
				
				var option = {"width":120,"items":[{"text":"\u65b0\u5efa","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/create.png","alias":"create","action":menuAction},{"text":"\u7f16\u8f91","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/edit.png","alias":"edit","action":menuAction},{"text":"\u5220\u9664","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/delete.png","alias":"delete","action":menuAction},{"type":"splitLine"},{"text":"\u8d26\u6237\u7ba1\u7406","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/account_manage.png","alias":"account_manage","type":"group","width":120,"items":[{"text":"\u4fee\u6539\u5bc6\u7801","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/modify_pwd.png","alias":"modify_pwd","action":menuAction},{"text":"\u9000\u51fa\u767b\u5f55","icon":"http:\/\/localhost\/admin_style\/images\/context_menu\/logout.png","alias":"logout","action":menuAction}]}],"onShow":applyrule};
				
				$(editable_obj).contextmenu(option);
  				break;
			  			}
			break;
		  		}
  	}
  	
  	function hover(obj) {
  		$(obj).live('mouseover', function(event) {
  			$(this).addClass('edit-outline');
  		}).live('mouseout', function(event) {
  			$(this).removeClass('edit-outline');
  		});
  	}
  	
  	function menuAction() {
  		var edit_obj_array = editable_obj.split(', ');
  		
  		for (x in edit_obj_array) {
  			if (current_selector_dom_obj == $(edit_obj_array[x])[0]) {
  				current_selector = edit_obj_array[x];
  			}
  		}
  		current_operate = this.data.alias;
  		
  		set_ajax_post_attributes(false);
  		
  		$.post(post_url, post_option,
		function (html) {
  			$("#operation_modal").html(html);
  			$("#operation_modal").modal({ /*backdrop: 'static', */keyboard: false }, 'show');
  		}, "html");
  	}
  	function applyrule(menu) {
  		switch (controller) {
  		  		case 'about_us':
  			switch (type) {
			  			case 'company':
  				  				  				switch (this) {
  				  		  		case $('#front')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"front","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('.company #intro')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"company_#intro","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'design_team':
  				  				  				switch (this) {
  				  		  		case $('.gallery')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"gallery","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#history')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"history","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#portrait')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"portrait","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#scrollbar1 .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"scrollbar1_.viewport","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'events':
  				  				  				switch (this) {
  				  		  		case $('#gallery')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"gallery","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#scrollbar2 .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"scrollbar2_.viewport","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'honor':
  				  				  				switch (this) {
  				  		  		case $('#honor_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"honor_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#scrollbar3 .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"scrollbar3_.viewport","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'manager_community':
  				  				  				switch (this) {
  				  		  		case $('.flip_sub_page')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"flip_sub_page","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('.flip-block')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"flip-block","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			}
			break;
		  		case 'project':
  			switch (type) {
			  			case 'project_museum':
  				  				  				switch (this) {
  				  		  		case $('.project .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#project_carousel .viewport li')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_carousel_.viewport_li","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'project_multi_media':
  				  				  				switch (this) {
  				  		  		case $('.project .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#project_carousel .viewport li')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_carousel_.viewport_li","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'project_brand_image':
  				  				  				switch (this) {
  				  		  		case $('.project .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#project_carousel .viewport li')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_carousel_.viewport_li","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'project_landscape_design':
  				  				  				switch (this) {
  				  		  		case $('.project .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#project_carousel .viewport li')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_carousel_.viewport_li","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'project_panorama_project':
  				  				  				switch (this) {
  				  		  		case $('.project .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#project_carousel .viewport li')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_carousel_.viewport_li","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'project_sculpture':
  				  				  				switch (this) {
  				  		  		case $('.project .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#project_carousel .viewport li')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_carousel_.viewport_li","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'project_commercial_demonstration':
  				  				  				switch (this) {
  				  		  		case $('.project .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('#project_carousel .viewport li')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"project_carousel_.viewport_li","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			}
			break;
		  		case 'service':
  			switch (type) {
			  			case 'service_museum':
  				  				  				switch (this) {
  				  		  		case $('#intro #content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"intro_#content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#service_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"service_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'service_multi_media':
  				  				  				switch (this) {
  				  		  		case $('#intro #content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"intro_#content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#service_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"service_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'service_brand_image':
  				  				  				switch (this) {
  				  		  		case $('#intro #content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"intro_#content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#service_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"service_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'service_landscape_design':
  				  				  				switch (this) {
  				  		  		case $('#intro #content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"intro_#content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#service_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"service_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'service_panorama_project':
  				  				  				switch (this) {
  				  		  		case $('#intro #content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"intro_#content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#service_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"service_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'service_sculpture':
  				  				  				switch (this) {
  				  		  		case $('#intro #content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"intro_#content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#service_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"service_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'service_commercial_demonstration':
  				  				  				switch (this) {
  				  		  		case $('#intro #content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"intro_#content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#service_carousel .viewport')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"service_carousel_.viewport","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			}
			break;
		  		case 'media':
  			switch (type) {
			  			case 'company_news':
  				  				  				switch (this) {
  				  		  		case $('.center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"center-content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#media_carousel .viewport .news > img')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"media_carousel_.viewport_.news_>_img","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#media_carousel .viewport .news > div')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"media_carousel_.viewport_.news_>_div","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#media_modal #pic')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"media_modal_#pic","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'media_reports':
  				  				  				switch (this) {
  				  		  		case $('.center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"center-content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#media_carousel .viewport .news > img')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"media_carousel_.viewport_.news_>_img","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#media_carousel .viewport .news > div')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"media_carousel_.viewport_.news_>_div","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#media_modal #pic')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"media_modal_#pic","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			}
			break;
		  		case 'academy':
  			switch (type) {
			  			case 'course':
  				  				  				switch (this) {
  				  		  		case $('.inner-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('.inner-content .courses')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content_.courses","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('#course_modal #gallery')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"course_modal_#gallery","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'exchange':
  				  				  				switch (this) {
  				  		  		case $('.inner-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		case $('.inner-content .exchanges')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content_.exchanges","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			}
			break;
		  		case 'join_us':
  			switch (type) {
			  			case 'corporate_culture':
  				  				  				switch (this) {
  				  		  		case $('.inner-content img')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content_img","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'staff_activities':
  				  				  				switch (this) {
  				  		  		case $('.staff_activities .center-content')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"staff_activities_.center-content","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		case $('..inner-content .activities')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content_.activities","disable":true,"items":["delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'contact':
  				  				  				switch (this) {
  				  		  		case $('.inner-content img')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content_img","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'company_location':
  				  				  				switch (this) {
  				  		  		case $('.inner-content img')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content_img","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			case 'careers':
  				  				  				switch (this) {
  				  		  		case $('.inner-content img')[0]:
  		  			  		  			current_selector_dom_obj = this;
  		  			menu.applyrule({"name":"inner-content_img","disable":true,"items":["create","delete"]});
  		  			break;
  		  		  		  		}
  		  		  				break;
			  			}
			break;
		  		}
  		  		
  		$(".edit-target").removeClass('edit-target');
  		$(".edit-outline").addClass('edit-target');
  	}
  	$(document).live('click', function() {
		$(".edit-target").removeClass('edit-target');
	});
  	
  	$("#operation_modal.modal > .modal-footer > .btn.edit-submit").live('click', function() {
  		set_ajax_post_attributes(true);
  		do_ajax_post();
  	});
  	
  	function set_ajax_post_attributes(is_submit) {
  		post_url = null;
  		//post_option = { };
  		
  		post_option['is_submit'] = (is_submit == true) ? true : false;
  		
  		if (current_operate == 'modify_pwd' || current_operate == 'logout') {
  			post_url = base_url + "index.php/backend/admin/" + current_operate;
  		} else {
  			post_url = base_url + "index.php/backend/" + controller + "/common";
  			
  			post_option['type'] = type;
  			post_option['selector'] = selector_replace(current_selector);
  			post_option['operate'] = current_operate;
  			
  			if (controller == 'about_us' && current_selector == '.flip-block') {
  				post_option['content_id'] = $("div.flip-block.edit-target").attr('id');
  			}
  			if (controller == 'project' && current_selector == '#project_carousel .viewport li') {
  				post_option['project_id'] = $("li.edit-target").attr('id');
  			}
  			if (controller == 'media') {
  				switch (current_selector) {
  					case '#media_carousel .viewport .news > img':
  					case '#media_carousel .viewport .news > div':
  						post_option['media_id'] = $("#media_carousel div.news > .edit-target").parent("div.news").attr('id');
  						break;
  				}
  			}
  			if (controller == 'academy') {
				switch (current_selector) {
  					case '.inner-content .courses':
  						post_option['course_id'] = $("div.courses.edit-target span").attr('id');
  						break;
  					case '.inner-content .exchanges':
  						post_option['exchange_id'] = $("div.exchanges.edit-target span").attr('id');
  						break;
  				}
  			}
  			if (controller == 'join_us') {
				switch (current_selector) {
  					case '.inner-content .activities':
  						post_option['activity_id'] = $("div.activities.edit-target span").attr('id');
  						break;
  				}
  			}
  			
  			if (is_submit == true) {
	  			if ($("#operation_modal.modal > .modal-body form textarea").length == 1) {
	  				editor_id = $("#operation_modal.modal > .modal-body form textarea").attr('id');
	  	  	  		editor_data = CKEDITOR.instances[editor_id].getData();
	  	  	  		post_option['form_textarea_data'] = editor_data;
	  			}
	  			post_option['form_fields_data'] = $("#operation_modal.modal > .modal-body form").serializeArray();
  			}
  		}
  	}
  	
  	function reload_page() {
  		if (current_operate == 'logout') {
			$(".btn.edit-submit").button('complete');
			setTimeout('location.reload()', 3000);
		} else {
			$(".btn.edit-submit").button('reset');
			
			var hash_piece = window.location.hash.split('&');
			if (hash_piece[1] != undefined) {
				if (hash_piece[1] == 'sub_page') {
					if (hash_piece[0] == '#design_team') {
						var param = { };
						param['id'] = hash_piece[2];
						do_ajax_post_by_condition(1, param);
					} else if (hash_piece[0] == '#events') {
						var param = { };
						param['year'] = hash_piece[2];
						do_ajax_post_by_condition(2, param);
					} else if (hash_piece[0] == '#manager_community') {
						var param = { };
						do_ajax_post_by_condition(4, param);
					}
				} else if (hash_piece[1] == 'flip_sub_page') {
					var param = { };
					param['request'] = hash_piece[1];
					param['sub_page_type'] = hash_piece[2];
					do_ajax_post_by_condition(5, param);
				}
			} else {
				$("#menu .child ul li.active").trigger('click');
			}
		}
  	}
  	
  	function do_ajax_post() {
  		var inject_exec = arguments[0] ? arguments[0] : '';
  		
  		$.post(post_url, post_option,
		function (data) {
  			if (data == 'success' || data != '') {
  				reload_page();
  				
  				if (data != '' && inject_exec != '') {
  					eval(inject_exec);
  				}
  			}
  		}, 'json');
  	}
/*});*/